function fn1() {
  var a = 2;
  function fn2() {
    a++;
    console.log(a);
    // return a
  }
  function fn3() {
    a--;
    console.log(a);
  }
  return fn3;
}
var f = fn1();
f(); // 1
f(); // 0
